Skip to content

PHPStan level 9 #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 24, 2025
Merged

PHPStan level 9 #286

merged 7 commits into from
Jul 24, 2025

Conversation

swissspidy
Copy link
Member

Comment on lines -2194 to -2196
if ( false === $modes ) {
$modes = [];
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was never false

Comment on lines -2158 to -2162
foreach ( [] as $arg ) {
if ( isset( $assoc_args[ $arg ] ) ) {
$args[ $arg ] = $assoc_args[ $arg ];
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looping through an empty array does nothing

Copy link

codecov bot commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/DB_Command.php 92.85% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy marked this pull request as ready for review July 3, 2025 15:06
@swissspidy swissspidy requested a review from a team as a code owner July 3, 2025 15:06
swissspidy and others added 2 commits July 7, 2025 23:36
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
@swissspidy swissspidy requested a review from schlessera July 8, 2025 09:14
@mrsdizzie
Copy link
Member

This looks ok to me!

@swissspidy swissspidy merged commit cf0dba1 into main Jul 24, 2025
30 of 43 checks passed
@swissspidy swissspidy deleted the try/phpstan branch July 24, 2025 10:59
@swissspidy swissspidy added this to the 2.1.4 milestone Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants